package ee.ut.system.modeling.hw3;

import java.util.List;

public class Task {

	private String id;
	private int duration;
	private boolean isCriticalPath;
	private List<Dependency> dependencies;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public int getDuration() {
		return duration;
	}

	public void setDuration(int duration) {
		this.duration = duration;
	}

	public boolean isCriticalPath() {
		return isCriticalPath;
	}

	public void setCriticalPath(boolean isCriticalPath) {
		this.isCriticalPath = isCriticalPath;
	}

	public List<Dependency> getDependencies() {
		return dependencies;
	}

	public void setDependencies(List<Dependency> dependencies) {
		this.dependencies = dependencies;
	}

	public Task(String id, int duration, boolean isCriticalPath,
			List<Dependency> dependencies) {
		super();
		this.id = id;
		this.duration = duration;
		this.isCriticalPath = isCriticalPath;
		this.dependencies = dependencies;
	}

}
